.ReactModal__Overlay {
  z-index: 1000;
}

.login.is-electron {
  input.validate:invalid {
    box-shadow: 0 0 1.5px 1px red;
  }

  input.validate:invalid:focus {
    outline-color: red;
  }
}

.login {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  form {
    width: 95%;
  }

  h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
  }

  .login__auth-message.is-error {
    color: $studio-red-60;
    font-size: 16px;
    margin: 0 auto 16px;
    max-width: 347px;
    text-align: center;
    width: 90%;
  }

  label {
    display: none;
  }

  input,
  button[type='submit'] {
    background-color: $studio-white;
    border: solid 1px $studio-gray-5;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    height: 40px;
    padding: 11px 15px;
    margin: 8px auto 0;
    max-width: 320px;
    width: 95%;
    font-size: 16px;
    font-weight: 400;
  }

  button[type='submit'] {
    background-color: $studio-simplenote-blue-50;
    border: none;
    color: $studio-white;
    font-weight: 500;
    margin: 16px auto 8px;
    padding: 0px 15px 2px;
  }

  a.login__forgot {
    color: $studio-gray-60;
    text-decoration: none;
  }

  .login__forgot,
  .login__signup,
  .terms {
    color: $studio-gray-60;
    display: block;
    font-size: 14px;
    margin: 16px auto;
    max-width: 320px;
    text-align: center;
  }

  .login__signup a,
  .terms a {
    color: $studio-simplenote-blue-50;
    margin-left: 5px;
    text-decoration: none;
  }

  .or {
    background: $studio-white;
    color: $studio-gray-60;
    display: block;
    font-size: 15px;
    font-style: italic;
    height: 20px;
    position: relative;
    margin: 10px auto;
    text-align: center;
    width: 50px;
    z-index: 1;
  }

  .or-line {
    border-bottom: 1px solid $studio-gray-5;
    margin: -20px auto;
    max-width: 320px;
    text-align: center;
    width: 95%;
    position: relative;
    display: block;
  }

  .wpcc-button {
    background-color: $studio-wordpress-blue-50;
    border-radius: 4px;
    box-sizing: border-box;
    color: $studio-white;
    display: block;
    font-size: 16px;
    font-weight: 500;
    height: 40px;
    padding: 0px 15px 2px;
    margin: 50px auto 10px;
    max-width: 320px;
    text-align: center;
    text-decoration: none;
    width: 95%;
  }
}

.theme-dark .login {
  h1 {
    color: $studio-white;
  }
  a.login__forgot {
    color: $studio-gray-20;
  }

  .login__forgot,
  .login__signup,
  .terms {
    color: $studio-gray-20;
  }

  .login__signup a,
  .terms a {
    color: $studio-simplenote-blue-30;
  }

  .login__auth-message.is-error {
    color: $studio-red-20;
  }

  .or {
    background: $studio-gray-90;
    color: $studio-gray-20;
  }
  .or-line {
    border-color: $studio-gray-80;
  }
}
